9cc184b6ff48eb69e6bf1a75a48b16986bafa6b1,chunky/src/java/se/llbit/chunky/renderer/scene/Scene.java,Scene,updateOpacity,#Ray#,534

Before Change



  public void updateOpacity(Ray ray) {
    if (ray.getCurrentMaterial() == Block.WATER || (ray.getCurrentMaterial() == Block.AIR
        && ray.getPrevMaterial() == Block.WATER)) {
      if (useCustomWaterColor) {
        ray.color.x = waterColor.x;
        ray.color.y = waterColor.y;

After Change



  public void updateOpacity(Ray ray) {
    if (ray.getCurrentMaterial().isWater() || (ray.getCurrentMaterial() == Block.AIR
        && ray.getPrevMaterial().isWater())) {
      if (useCustomWaterColor) {
        ray.color.x = waterColor.x;
        ray.color.y = waterColor.y;